using MediatR;
using TerritoryGame.Domain.ValueObjects;

namespace TerritoryGame.Application.Commands;

public record RestartGameCommand : IRequest<RestartGameResult>
{
    public Guid RoomId { get; init; }
    public Guid PlayerId { get; init; }
}

public record RestartGameResult
{
    public bool Success { get; init; }
    public string? ErrorMessage { get; init; }
    public int GameDuration { get; init; }
    public List<PlayerInfo> Players { get; init; } = new();
}
